package com.w.wx.mapper;

import com.w.wx.domain.Images;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Mapper
@Component
public interface ImagesMapper {

    int insert(Images record);



    ArrayList<String> selectByGid(Integer gid);

    void updateByGid(@Param("state") Integer state, @Param("gid") Integer gid);

    void deleteByGid(Integer gid);


    ArrayList<Images> selectByOpenid(String openid);

    Integer selectForState(@Param("open") String openid);

    int deleteByOpenid(String openid);
}